package model.interfaces;

import model.dao.HibernateDAOFactory;
import model.interfaces.login.UsuarioDAO;

public abstract class DAOFactory {
	public static final int HIBERNATE = 1;
	
	public abstract void iniciarTransacao();
	public abstract void cancelarTransacao();
	public abstract void encerrar();
				
	public abstract UsuarioDAO getUsuarioDAO();
	
	public static DAOFactory getDAOFactory(int qualFabrica){

		switch(qualFabrica){
		case HIBERNATE:
			return new HibernateDAOFactory();
		default:
			return null;
		}
	}
}
